class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string :title
      t.references :user
      t.references :topic
      t.references :category
      t.text :summary
      t.text :content
      t.text :media
      t.text :info
      t.string :tags
      t.integer :price
      t.boolean :deleted
      t.boolean :digest

      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
